package com.zzj.ecology.system.bean.purchase;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class FapdPurchase implements Serializable {
    private Integer id;

    private String purchaseId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date purchaseAt;

    private String purchaseDeptName;

    private String purchaseManagerName;

    private String purchaseChiefName;

    private String purchaseDeptLabel;//-\-\-，上述 XX部\XX课\XX系，如果无使用-代替

    private String categoryidItemid;

    private String expenditureClass;

    private String goodName;

    private String goodSpec;

    private Double goodQty;

    private String goodUnit;

    private Double goodPrice;

    private Double goodSubPrice;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date goodExpiredAt;

    private String goodUseFor;

    private String goodComment;

    private String buyer;

    private String checkedByChief;

    private String checkedByManager;

    private String admittedByMinister;

    private Integer status;

    private Date createAt;

    private String createdByGlobalId;

    private Integer deleteStatus;

    private Date lastUpdateAt;

    private String updatedByGlobalId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId == null ? null : purchaseId.trim();
    }

    public Date getPurchaseAt() {
        return purchaseAt;
    }

    public void setPurchaseAt(Date purchaseAt) {
        this.purchaseAt = purchaseAt;
    }

    public String getPurchaseDeptName() {
        return purchaseDeptName;
    }

    public void setPurchaseDeptName(String purchaseDeptName) {
        this.purchaseDeptName = purchaseDeptName == null ? null : purchaseDeptName.trim();
    }

    public String getPurchaseManagerName() {
        return purchaseManagerName;
    }

    public void setPurchaseManagerName(String purchaseManagerName) {
        this.purchaseManagerName = purchaseManagerName == null ? null : purchaseManagerName.trim();
    }

    public String getPurchaseChiefName() {
        return purchaseChiefName;
    }

    public void setPurchaseChiefName(String purchaseChiefName) {
        this.purchaseChiefName = purchaseChiefName == null ? null : purchaseChiefName.trim();
    }

    public String getPurchaseDeptLabel() {
        return purchaseDeptLabel;
    }

    public void setPurchaseDeptLabel(String purchaseDeptLabel) {
        this.purchaseDeptLabel = purchaseDeptLabel == null ? null : purchaseDeptLabel.trim();
    }

    public String getCategoryidItemid() {
        return categoryidItemid;
    }

    public void setCategoryidItemid(String categoryidItemid) {
        this.categoryidItemid = categoryidItemid == null ? null : categoryidItemid.trim();
    }

    public String getExpenditureClass() {
        return expenditureClass;
    }

    public void setExpenditureClass(String expenditureClass) {
        this.expenditureClass = expenditureClass == null ? null : expenditureClass.trim();
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName == null ? null : goodName.trim();
    }

    public String getGoodSpec() {
        return goodSpec;
    }

    public void setGoodSpec(String goodSpec) {
        this.goodSpec = goodSpec == null ? null : goodSpec.trim();
    }

    public Double getGoodQty() {
        return goodQty;
    }

    public void setGoodQty(Double goodQty) {
        this.goodQty = goodQty;
    }

    public String getGoodUnit() {
        return goodUnit;
    }

    public void setGoodUnit(String goodUnit) {
        this.goodUnit = goodUnit == null ? null : goodUnit.trim();
    }

    public Double getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(Double goodPrice) {
        this.goodPrice = goodPrice;
    }

    public Double getGoodSubPrice() {
        return goodSubPrice;
    }

    public void setGoodSubPrice(Double goodSubPrice) {
        this.goodSubPrice = goodSubPrice;
    }

    public Date getGoodExpiredAt() {
        return goodExpiredAt;
    }

    public void setGoodExpiredAt(Date goodExpiredAt) {
        this.goodExpiredAt = goodExpiredAt;
    }

    public String getGoodUseFor() {
        return goodUseFor;
    }

    public void setGoodUseFor(String goodUseFor) {
        this.goodUseFor = goodUseFor == null ? null : goodUseFor.trim();
    }

    public String getGoodComment() {
        return goodComment;
    }

    public void setGoodComment(String goodComment) {
        this.goodComment = goodComment == null ? null : goodComment.trim();
    }

    public String getBuyer() {
        return buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer == null ? null : buyer.trim();
    }

    public String getCheckedByChief() {
        return checkedByChief;
    }

    public void setCheckedByChief(String checkedByChief) {
        this.checkedByChief = checkedByChief == null ? null : checkedByChief.trim();
    }

    public String getCheckedByManager() {
        return checkedByManager;
    }

    public void setCheckedByManager(String checkedByManager) {
        this.checkedByManager = checkedByManager == null ? null : checkedByManager.trim();
    }

    public String getAdmittedByMinister() {
        return admittedByMinister;
    }

    public void setAdmittedByMinister(String admittedByMinister) {
        this.admittedByMinister = admittedByMinister == null ? null : admittedByMinister.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCreatedByGlobalId() {
        return createdByGlobalId;
    }

    public void setCreatedByGlobalId(String createdByGlobalId) {
        this.createdByGlobalId = createdByGlobalId == null ? null : createdByGlobalId.trim();
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public Date getLastUpdateAt() {
        return lastUpdateAt;
    }

    public void setLastUpdateAt(Date lastUpdateAt) {
        this.lastUpdateAt = lastUpdateAt;
    }

    public String getUpdatedByGlobalId() {
        return updatedByGlobalId;
    }

    public void setUpdatedByGlobalId(String updatedByGlobalId) {
        this.updatedByGlobalId = updatedByGlobalId == null ? null : updatedByGlobalId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", purchaseId=").append(purchaseId);
        sb.append(", purchaseAt=").append(purchaseAt);
        sb.append(", purchaseDeptName=").append(purchaseDeptName);
        sb.append(", purchaseManagerName=").append(purchaseManagerName);
        sb.append(", purchaseChiefName=").append(purchaseChiefName);
        sb.append(", purchaseDeptLabel=").append(purchaseDeptLabel);
        sb.append(", categoryidItemid=").append(categoryidItemid);
        sb.append(", expenditureClass=").append(expenditureClass);
        sb.append(", goodName=").append(goodName);
        sb.append(", goodSpec=").append(goodSpec);
        sb.append(", goodQty=").append(goodQty);
        sb.append(", goodUnit=").append(goodUnit);
        sb.append(", goodPrice=").append(goodPrice);
        sb.append(", goodSubPrice=").append(goodSubPrice);
        sb.append(", goodExpiredAt=").append(goodExpiredAt);
        sb.append(", goodUseFor=").append(goodUseFor);
        sb.append(", goodComment=").append(goodComment);
        sb.append(", buyer=").append(buyer);
        sb.append(", checkedByChief=").append(checkedByChief);
        sb.append(", checkedByManager=").append(checkedByManager);
        sb.append(", admittedByMinister=").append(admittedByMinister);
        sb.append(", status=").append(status);
        sb.append(", createAt=").append(createAt);
        sb.append(", createdByGlobalId=").append(createdByGlobalId);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", lastUpdateAt=").append(lastUpdateAt);
        sb.append(", updatedByGlobalId=").append(updatedByGlobalId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}